<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="content type" content="text/html; charset=utf-8">
		<title>motify</title>
		<script type="text/javascript">
			window.onload=function()
			{
				if(<{$data.sex}> == 0)
				{
					document.getElementsByName('sex')[1].checked = 'checked';
				}
				else
				{
					document.getElementsByName('sex')[0].checked = 'checked';
				}
			}
		</script>
	</head>
	<body>
		<form action="/thinkphp/User/update" method="post">
			<input type="hidden" name="id" value="<{$data.id}>" />
			姓名：<input type="text" name="username" value="<{$data.username}>"/><br/>
			性别：男<input type="radio" name="sex" value="1"/>女<input type="radio" name="sex" value="0"/><br/>
			<input type="submit" value="提交修改" />
		</form>
	</body>
</html>